﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using Digitalmes.Model.EquipmentManagement;
using Digitalmes.Model;

namespace Digitalmes.ViewModel.EquipmentManagement.EquipmentVMs
{
    public partial class EquipmentTemplateVM : BaseTemplateVM
    {
        
        [Display(Name = "_Model._Equipment._EquipName")]
        public ExcelPropety EquipName_Excel = ExcelPropety.CreateProperty<Equipment>(x => x.EquipName);
        [Display(Name = "_Model._Equipment._IpAddress")]
        public ExcelPropety IpAddress_Excel = ExcelPropety.CreateProperty<Equipment>(x => x.IpAddress);
        [Display(Name = "_Model._Equipment._Port")]
        public ExcelPropety Port_Excel = ExcelPropety.CreateProperty<Equipment>(x => x.Port);
        [Display(Name = "_Model._Equipment._Actvie")]
        public ExcelPropety Actvie_Excel = ExcelPropety.CreateProperty<Equipment>(x => x.Actvie);
        [Display(Name = "_Model._Equipment._DriverType")]
        public ExcelPropety DriverType_Excel = ExcelPropety.CreateProperty<Equipment>(x => x.DriverType);
        [Display(Name = "_Model._Equipment._Aux_1")]
        public ExcelPropety Aux_1_Excel = ExcelPropety.CreateProperty<Equipment>(x => x.Aux_1);
        [Display(Name = "_Model._Equipment._Aux_2")]
        public ExcelPropety Aux_2_Excel = ExcelPropety.CreateProperty<Equipment>(x => x.Aux_2);
        [Display(Name = "_Model._Equipment._EquipCode")]
        public ExcelPropety EquipCode_Excel = ExcelPropety.CreateProperty<Equipment>(x => x.EquipCode);
        [Display(Name = "_Model._Equipment._EquipType")]
        public ExcelPropety EquipType_Excel = ExcelPropety.CreateProperty<Equipment>(x => x.EquipType);
        [Display(Name = "_Model._Equipment._Manufactor")]
        public ExcelPropety Manufactor_Excel = ExcelPropety.CreateProperty<Equipment>(x => x.Manufactor);
        [Display(Name = "_Model._Equipment._SpotType")]
        public ExcelPropety SpotType_Excel = ExcelPropety.CreateProperty<Equipment>(x => x.SpotType);
        [Display(Name = "_Model._Equipment._CreateTime")]
        public ExcelPropety CreateTime_Excel = ExcelPropety.CreateProperty<Equipment>(x => x.CreateTime, true);
        [Display(Name = "_Model._Equipment._UpdateTime")]
        public ExcelPropety UpdateTime_Excel = ExcelPropety.CreateProperty<Equipment>(x => x.UpdateTime, true);
        [Display(Name = "_Model._Equipment._CreateBy")]
        public ExcelPropety CreateBy_Excel = ExcelPropety.CreateProperty<Equipment>(x => x.CreateBy);
        [Display(Name = "_Model._Equipment._UpdateBy")]
        public ExcelPropety UpdateBy_Excel = ExcelPropety.CreateProperty<Equipment>(x => x.UpdateBy);
        [Display(Name = "_Model._Equipment._IsValid")]
        public ExcelPropety IsValid_Excel = ExcelPropety.CreateProperty<Equipment>(x => x.IsValid);
        [Display(Name = "_Model._Equipment._TenantCode")]
        public ExcelPropety TenantCode_Excel = ExcelPropety.CreateProperty<Equipment>(x => x.TenantCode);

	    protected override void InitVM()
        {
            
        }

    }

    public class EquipmentImportVM : BaseImportVM<EquipmentTemplateVM, Equipment>
    {
            //import

    }

}